
from south.db import db
from django.db import models
from core.models import *

class Migration:
    
    def forwards(self, orm):
        
        # Adding model 'Opinion'
        db.create_table('core_opinion', (
            ('id', orm['core.opinion:id']),
            ('title', orm['core.opinion:title']),
            ('slug', orm['core.opinion:slug']),
            ('description', orm['core.opinion:description']),
            ('tags', orm['core.opinion:tags']),
            ('position', orm['core.opinion:position']),
        ))
        db.send_create_signal('core', ['Opinion'])
        
        # Adding field 'Place.tags'
        db.add_column('core_place', 'tags', orm['core.place:tags'])
        
        # Adding field 'Argument.tags'
        db.add_column('core_argument', 'tags', orm['core.argument:tags'])
        
        # Adding field 'Project.tags'
        db.add_column('core_project', 'tags', orm['core.project:tags'])
        
        # Adding field 'ProjectUpdate.tags'
        db.add_column('core_projectupdate', 'tags', orm['core.projectupdate:tags'])
        
    
    
    def backwards(self, orm):
        
        # Deleting model 'Opinion'
        db.delete_table('core_opinion')
        
        # Deleting field 'Place.tags'
        db.delete_column('core_place', 'tags')
        
        # Deleting field 'Argument.tags'
        db.delete_column('core_argument', 'tags')
        
        # Deleting field 'Project.tags'
        db.delete_column('core_project', 'tags')
        
        # Deleting field 'ProjectUpdate.tags'
        db.delete_column('core_projectupdate', 'tags')
        
    
    
    models = {
        'core.argument': {
            'correct': ('django.db.models.fields.NullBooleanField', [], {'null': 'True'}),
            'date_time': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'my_answer': ('django.db.models.fields.TextField', [], {}),
            'opposing_answer': ('django.db.models.fields.TextField', [], {}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
            'tags': ('TagField', [], {}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '600'})
        },
        'core.event': {
            'date_time': ('django.db.models.fields.DateTimeField', [], {}),
            'date_time_to': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'place': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['core.Place']"}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
            'tags': ('TagField', [], {}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '600'})
        },
        'core.opinion': {
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'position': ('django.db.models.fields.IntegerField', [], {}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
            'tags': ('TagField', [], {}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '600'})
        },
        'core.place': {
            'coordinates': ('django.contrib.gis.db.models.fields.PointField', [], {}),
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
            'tags': ('TagField', [], {}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '600'})
        },
        'core.project': {
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
            'tags': ('TagField', [], {}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '600'}),
            'web_link': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
        },
        'core.projectupdate': {
            'current_status': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'date_time': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['core.Project']"}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
            'tags': ('TagField', [], {}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '600'})
        }
    }
    
    complete_apps = ['core']
